.class public Lcom/waiqin365/lightapp/dailyreport/c/p;
.super Landroid/widget/BaseAdapter;


# instance fields
.field private a:Ljava/util/ArrayList;

.field private b:Landroid/content/Context;

.field private c:Lcom/waiqin365/lightapp/dailyreport/c/s;

.field private d:Lcom/waiqin365/lightapp/dailyreport/c/t;

.field private e:Z


# direct methods
.method public constructor <init>(Landroid/content/Context;Ljava/util/ArrayList;)V
    .locals 1

    invoke-direct {p0}, Landroid/widget/BaseAdapter;-><init>()V

    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/waiqin365/lightapp/dailyreport/c/p;->e:Z

    iput-object p1, p0, Lcom/waiqin365/lightapp/dailyreport/c/p;->b:Landroid/content/Context;

    iput-object p2, p0, Lcom/waiqin365/lightapp/dailyreport/c/p;->a:Ljava/util/ArrayList;

    return-void
.end method

.method static synthetic a(Lcom/waiqin365/lightapp/dailyreport/c/p;)Lcom/waiqin365/lightapp/dailyreport/c/s;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/c/p;->c:Lcom/waiqin365/lightapp/dailyreport/c/s;

    return-object v0
.end method

.method static synthetic b(Lcom/waiqin365/lightapp/dailyreport/c/p;)Ljava/util/ArrayList;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/c/p;->a:Ljava/util/ArrayList;

    return-object v0
.end method

.method static synthetic c(Lcom/waiqin365/lightapp/dailyreport/c/p;)Lcom/waiqin365/lightapp/dailyreport/c/t;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/c/p;->d:Lcom/waiqin365/lightapp/dailyreport/c/t;

    return-object v0
.end method


# virtual methods
.method public a(Lcom/waiqin365/lightapp/dailyreport/c/s;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/dailyreport/c/p;->c:Lcom/waiqin365/lightapp/dailyreport/c/s;

    return-void
.end method

.method public a(Lcom/waiqin365/lightapp/dailyreport/c/t;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/dailyreport/c/p;->d:Lcom/waiqin365/lightapp/dailyreport/c/t;

    return-void
.end method

.method public a(Z)V
    .locals 0

    iput-boolean p1, p0, Lcom/waiqin365/lightapp/dailyreport/c/p;->e:Z

    return-void
.end method

.method public getCount()I
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/c/p;->a:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    return v0
.end method

.method public getItem(I)Ljava/lang/Object;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/c/p;->a:Ljava/util/ArrayList;

    invoke-virtual {v0, p1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    return-object v0
.end method

.method public getItemId(I)J
    .locals 2

    int-to-long v0, p1

    return-wide v0
.end method

.method public getView(ILandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;
    .locals 11

    if-nez p2, :cond_6

    iget-boolean v0, p0, Lcom/waiqin365/lightapp/dailyreport/c/p;->e:Z

    if-eqz v0, :cond_5

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/c/p;->b:Landroid/content/Context;

    invoke-static {v0}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    const v1, 0x7f030108

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v0

    move-object v1, v0

    :goto_0
    new-instance v2, Lcom/waiqin365/lightapp/dailyreport/c/u;

    const/4 v0, 0x0

    invoke-direct {v2, p0, v0}, Lcom/waiqin365/lightapp/dailyreport/c/u;-><init>(Lcom/waiqin365/lightapp/dailyreport/c/p;Lcom/waiqin365/lightapp/dailyreport/c/q;)V

    invoke-virtual {v1, v2}, Landroid/view/View;->setTag(Ljava/lang/Object;)V

    const v0, 0x7f0c062e

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, v2, Lcom/waiqin365/lightapp/dailyreport/c/u;->a:Landroid/widget/TextView;

    move-object v6, v2

    move-object p2, v1

    :goto_1
    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/c/p;->a:Ljava/util/ArrayList;

    invoke-virtual {v0, p1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/dailyreport/c/c;

    iget-object v1, v0, Lcom/waiqin365/lightapp/dailyreport/c/c;->j:Ljava/lang/String;

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/c/p;->a:Ljava/util/ArrayList;

    invoke-virtual {v0, p1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/dailyreport/c/c;

    iget-object v9, v0, Lcom/waiqin365/lightapp/dailyreport/c/c;->d:Ljava/lang/String;

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/c/p;->a:Ljava/util/ArrayList;

    invoke-virtual {v0, p1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/dailyreport/c/c;

    iget-object v10, v0, Lcom/waiqin365/lightapp/dailyreport/c/c;->l:Ljava/lang/String;

    const-string/jumbo v0, ""

    const-string/jumbo v2, "3"

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/c/p;->a:Ljava/util/ArrayList;

    invoke-virtual {v0, p1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/dailyreport/c/c;

    iget-object v0, v0, Lcom/waiqin365/lightapp/dailyreport/c/c;->n:Ljava/lang/String;

    invoke-virtual {v2, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_7

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/c/p;->b:Landroid/content/Context;

    const v2, 0x7f08012c

    invoke-virtual {v0, v2}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v0

    const/4 v2, 0x2

    new-array v2, v2, [Ljava/lang/Object;

    const/4 v3, 0x0

    aput-object v9, v2, v3

    const/4 v3, 0x1

    aput-object v10, v2, v3

    invoke-static {v0, v2}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v0, v1}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v8

    new-instance v7, Landroid/text/SpannableStringBuilder;

    invoke-direct {v7, v8}, Landroid/text/SpannableStringBuilder;-><init>(Ljava/lang/CharSequence;)V

    new-instance v0, Lcom/waiqin365/lightapp/dailyreport/view/br;

    iget-object v1, p0, Lcom/waiqin365/lightapp/dailyreport/c/p;->b:Landroid/content/Context;

    const-string/jumbo v2, "toDaily_info"

    const-string/jumbo v3, ""

    iget-object v4, p0, Lcom/waiqin365/lightapp/dailyreport/c/p;->a:Ljava/util/ArrayList;

    invoke-virtual {v4, p1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Lcom/waiqin365/lightapp/dailyreport/c/c;

    iget-object v4, v4, Lcom/waiqin365/lightapp/dailyreport/c/c;->c:Ljava/lang/String;

    const/4 v5, 0x0

    invoke-direct/range {v0 .. v5}, Lcom/waiqin365/lightapp/dailyreport/view/br;-><init>(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;I)V

    const/4 v1, 0x0

    invoke-virtual {v9}, Ljava/lang/String;->length()I

    move-result v2

    const/16 v3, 0x21

    invoke-virtual {v7, v0, v1, v2, v3}, Landroid/text/SpannableStringBuilder;->setSpan(Ljava/lang/Object;III)V

    new-instance v0, Landroid/text/style/ForegroundColorSpan;

    const-string/jumbo v1, "#4A6792"

    invoke-static {v1}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

    move-result v1

    invoke-direct {v0, v1}, Landroid/text/style/ForegroundColorSpan;-><init>(I)V

    const/4 v1, 0x0

    invoke-virtual {v9}, Ljava/lang/String;->length()I

    move-result v2

    const/16 v3, 0x22

    invoke-virtual {v7, v0, v1, v2, v3}, Landroid/text/SpannableStringBuilder;->setSpan(Ljava/lang/Object;III)V

    new-instance v0, Lcom/waiqin365/lightapp/dailyreport/view/br;

    iget-object v1, p0, Lcom/waiqin365/lightapp/dailyreport/c/p;->b:Landroid/content/Context;

    const-string/jumbo v2, "toDaily_info"

    const-string/jumbo v3, ""

    iget-object v4, p0, Lcom/waiqin365/lightapp/dailyreport/c/p;->a:Ljava/util/ArrayList;

    invoke-virtual {v4, p1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Lcom/waiqin365/lightapp/dailyreport/c/c;

    iget-object v4, v4, Lcom/waiqin365/lightapp/dailyreport/c/c;->k:Ljava/lang/String;

    const/4 v5, 0x0

    invoke-direct/range {v0 .. v5}, Lcom/waiqin365/lightapp/dailyreport/view/br;-><init>(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;I)V

    invoke-virtual {v9}, Ljava/lang/String;->length()I

    move-result v1

    add-int/lit8 v1, v1, 0x2

    invoke-virtual {v9}, Ljava/lang/String;->length()I

    move-result v2

    add-int/lit8 v2, v2, 0x2

    invoke-virtual {v10}, Ljava/lang/String;->length()I

    move-result v3

    add-int/2addr v2, v3

    const/16 v3, 0x21

    invoke-virtual {v7, v0, v1, v2, v3}, Landroid/text/SpannableStringBuilder;->setSpan(Ljava/lang/Object;III)V

    new-instance v0, Landroid/text/style/ForegroundColorSpan;

    const-string/jumbo v1, "#4A6792"

    invoke-static {v1}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

    move-result v1

    invoke-direct {v0, v1}, Landroid/text/style/ForegroundColorSpan;-><init>(I)V

    invoke-virtual {v9}, Ljava/lang/String;->length()I

    move-result v1

    add-int/lit8 v1, v1, 0x2

    invoke-virtual {v9}, Ljava/lang/String;->length()I

    move-result v2

    add-int/lit8 v2, v2, 0x2

    invoke-virtual {v10}, Ljava/lang/String;->length()I

    move-result v3

    add-int/2addr v2, v3

    const/16 v3, 0x22

    invoke-virtual {v7, v0, v1, v2, v3}, Landroid/text/SpannableStringBuilder;->setSpan(Ljava/lang/Object;III)V

    move-object v0, v7

    move-object v1, v8

    :goto_2
    invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v2

    if-nez v2, :cond_8

    const-string/jumbo v2, "http://"

    invoke-virtual {v1, v2}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v2

    if-nez v2, :cond_0

    const-string/jumbo v2, "https://"

    invoke-virtual {v1, v2}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v2

    if-nez v2, :cond_0

    const-string/jumbo v2, "www."

    invoke-virtual {v1, v2}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v2

    if-nez v2, :cond_0

    const-string/jumbo v2, "<a "

    invoke-virtual {v1, v2}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v1

    if-eqz v1, :cond_8

    :cond_0
    iget-object v1, v6, Lcom/waiqin365/lightapp/dailyreport/c/u;->a:Landroid/widget/TextView;

    const/4 v2, 0x1

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setAutoLinkMask(I)V

    :goto_3
    iget-object v1, p0, Lcom/waiqin365/lightapp/dailyreport/c/p;->b:Landroid/content/Context;

    const v2, 0x3f19999a    # 0.6f

    invoke-static {v1, v0, v2}, Lcom/waiqin365/lightapp/dailyreport/util/DailySmileUtils;->addSmiles(Landroid/content/Context;Landroid/text/Spannable;F)Z

    iget-object v1, v6, Lcom/waiqin365/lightapp/dailyreport/c/u;->a:Landroid/widget/TextView;

    invoke-static {}, Landroid/text/method/LinkMovementMethod;->getInstance()Landroid/text/method/MovementMethod;

    move-result-object v2

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setMovementMethod(Landroid/text/method/MovementMethod;)V

    iget-object v1, v6, Lcom/waiqin365/lightapp/dailyreport/c/u;->a:Landroid/widget/TextView;

    invoke-virtual {v1, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v0, v6, Lcom/waiqin365/lightapp/dailyreport/c/u;->a:Landroid/widget/TextView;

    new-instance v1, Lcom/waiqin365/lightapp/dailyreport/c/q;

    invoke-direct {v1, p0, p1}, Lcom/waiqin365/lightapp/dailyreport/c/q;-><init>(Lcom/waiqin365/lightapp/dailyreport/c/p;I)V

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v0, v6, Lcom/waiqin365/lightapp/dailyreport/c/u;->a:Landroid/widget/TextView;

    new-instance v1, Lcom/waiqin365/lightapp/dailyreport/c/r;

    invoke-direct {v1, p0}, Lcom/waiqin365/lightapp/dailyreport/c/r;-><init>(Lcom/waiqin365/lightapp/dailyreport/c/p;)V

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setOnLongClickListener(Landroid/view/View$OnLongClickListener;)V

    iget-boolean v0, p0, Lcom/waiqin365/lightapp/dailyreport/c/p;->e:Z

    if-nez v0, :cond_4

    if-nez p1, :cond_1

    iget-object v0, v6, Lcom/waiqin365/lightapp/dailyreport/c/u;->a:Landroid/widget/TextView;

    const/16 v1, 0x1e

    const/16 v2, 0x10

    const/16 v3, 0x1e

    const/4 v4, 0x0

    invoke-virtual {v0, v1, v2, v3, v4}, Landroid/widget/TextView;->setPadding(IIII)V

    :cond_1
    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/c/p;->a:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    add-int/lit8 v0, v0, -0x1

    if-ne p1, v0, :cond_2

    iget-object v0, v6, Lcom/waiqin365/lightapp/dailyreport/c/u;->a:Landroid/widget/TextView;

    const/16 v1, 0x1e

    const/4 v2, 0x0

    const/16 v3, 0x1e

    const/16 v4, 0x10

    invoke-virtual {v0, v1, v2, v3, v4}, Landroid/widget/TextView;->setPadding(IIII)V

    :cond_2
    if-nez p1, :cond_3

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/c/p;->a:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    add-int/lit8 v0, v0, -0x1

    if-ne p1, v0, :cond_3

    iget-object v0, v6, Lcom/waiqin365/lightapp/dailyreport/c/u;->a:Landroid/widget/TextView;

    const/16 v1, 0x1e

    const/16 v2, 0x10

    const/16 v3, 0x1e

    const/16 v4, 0x10

    invoke-virtual {v0, v1, v2, v3, v4}, Landroid/widget/TextView;->setPadding(IIII)V

    :cond_3
    if-eqz p1, :cond_4

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/c/p;->a:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    add-int/lit8 v0, v0, -0x1

    if-eq p1, v0, :cond_4

    iget-object v0, v6, Lcom/waiqin365/lightapp/dailyreport/c/u;->a:Landroid/widget/TextView;

    const/16 v1, 0x1e

    const/4 v2, 0x0

    const/16 v3, 0x1e

    const/4 v4, 0x0

    invoke-virtual {v0, v1, v2, v3, v4}, Landroid/widget/TextView;->setPadding(IIII)V

    :cond_4
    return-object p2

    :cond_5
    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/c/p;->b:Landroid/content/Context;

    invoke-static {v0}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    const v1, 0x7f030107

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v0

    move-object v1, v0

    goto/16 :goto_0

    :cond_6
    invoke-virtual {p2}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/dailyreport/c/u;

    move-object v6, v0

    goto/16 :goto_1

    :cond_7
    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/c/p;->b:Landroid/content/Context;

    const v2, 0x7f08012a

    invoke-virtual {v0, v2}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v0

    const/4 v2, 0x1

    new-array v2, v2, [Ljava/lang/Object;

    const/4 v3, 0x0

    aput-object v9, v2, v3

    invoke-static {v0, v2}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v0, v1}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v8

    new-instance v7, Landroid/text/SpannableStringBuilder;

    invoke-direct {v7, v8}, Landroid/text/SpannableStringBuilder;-><init>(Ljava/lang/CharSequence;)V

    new-instance v0, Lcom/waiqin365/lightapp/dailyreport/view/br;

    iget-object v1, p0, Lcom/waiqin365/lightapp/dailyreport/c/p;->b:Landroid/content/Context;

    const-string/jumbo v2, "toDaily_info"

    const-string/jumbo v3, ""

    iget-object v4, p0, Lcom/waiqin365/lightapp/dailyreport/c/p;->a:Ljava/util/ArrayList;

    invoke-virtual {v4, p1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Lcom/waiqin365/lightapp/dailyreport/c/c;

    iget-object v4, v4, Lcom/waiqin365/lightapp/dailyreport/c/c;->c:Ljava/lang/String;

    const/4 v5, 0x0

    invoke-direct/range {v0 .. v5}, Lcom/waiqin365/lightapp/dailyreport/view/br;-><init>(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;I)V

    const/4 v1, 0x0

    invoke-virtual {v9}, Ljava/lang/String;->length()I

    move-result v2

    const/16 v3, 0x21

    invoke-virtual {v7, v0, v1, v2, v3}, Landroid/text/SpannableStringBuilder;->setSpan(Ljava/lang/Object;III)V

    new-instance v0, Landroid/text/style/ForegroundColorSpan;

    const-string/jumbo v1, "#4A6792"

    invoke-static {v1}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

    move-result v1

    invoke-direct {v0, v1}, Landroid/text/style/ForegroundColorSpan;-><init>(I)V

    const/4 v1, 0x0

    invoke-virtual {v9}, Ljava/lang/String;->length()I

    move-result v2

    const/16 v3, 0x22

    invoke-virtual {v7, v0, v1, v2, v3}, Landroid/text/SpannableStringBuilder;->setSpan(Ljava/lang/Object;III)V

    move-object v0, v7

    move-object v1, v8

    goto/16 :goto_2

    :cond_8
    iget-object v1, v6, Lcom/waiqin365/lightapp/dailyreport/c/u;->a:Landroid/widget/TextView;

    const/4 v2, 0x0

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setAutoLinkMask(I)V

    goto/16 :goto_3
.end method
